.class Limoblife/yogamoment/lite/SetActivity$2;
.super Ljava/lang/Object;
.source "SetActivity.java"

# interfaces
.implements Landroid/preference/Preference$OnPreferenceChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Limoblife/yogamoment/lite/SetActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Limoblife/yogamoment/lite/SetActivity;

.field private final synthetic val$animationCheckBox:Landroid/preference/CheckBoxPreference;

.field private final synthetic val$setAnimationtpreference:Landroid/preference/Preference;


# direct methods
.method constructor <init>(Limoblife/yogamoment/lite/SetActivity;Landroid/preference/CheckBoxPreference;Landroid/preference/Preference;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Limoblife/yogamoment/lite/SetActivity$2;->this$0:Limoblife/yogamoment/lite/SetActivity;

    iput-object p2, p0, Limoblife/yogamoment/lite/SetActivity$2;->val$animationCheckBox:Landroid/preference/CheckBoxPreference;

    iput-object p3, p0, Limoblife/yogamoment/lite/SetActivity$2;->val$setAnimationtpreference:Landroid/preference/Preference;

    .line 70
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Object;)Z
    .locals 3
    .parameter "preference"
    .parameter "newValue"

    .prologue
    const/4 v2, 0x0

    .line 73
    check-cast p2, Ljava/lang/Boolean;

    .end local p2
    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    sput-boolean v0, Limoblife/yogamoment/lite/SetActivity;->isAnimationPlay:Z

    .line 74
    sget-boolean v0, Limoblife/yogamoment/lite/SetActivity;->isAnimationPlay:Z

    if-eqz v0, :cond_0

    .line 75
    iget-object v0, p0, Limoblife/yogamoment/lite/SetActivity$2;->val$animationCheckBox:Landroid/preference/CheckBoxPreference;

    const v1, 0x7f050029

    invoke-virtual {v0, v1}, Landroid/preference/CheckBoxPreference;->setTitle(I)V

    .line 76
    iget-object v0, p0, Limoblife/yogamoment/lite/SetActivity$2;->val$animationCheckBox:Landroid/preference/CheckBoxPreference;

    const v1, 0x7f05002b

    invoke-virtual {v0, v1}, Landroid/preference/CheckBoxPreference;->setSummary(I)V

    .line 77
    iget-object v0, p0, Limoblife/yogamoment/lite/SetActivity$2;->val$setAnimationtpreference:Landroid/preference/Preference;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setEnabled(Z)V

    .line 83
    :goto_0
    iget-object v0, p0, Limoblife/yogamoment/lite/SetActivity$2;->val$animationCheckBox:Landroid/preference/CheckBoxPreference;

    sget-boolean v1, Limoblife/yogamoment/lite/SetActivity;->isAnimationPlay:Z

    invoke-virtual {v0, v1}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 84
    return v2

    .line 79
    :cond_0
    iget-object v0, p0, Limoblife/yogamoment/lite/SetActivity$2;->val$animationCheckBox:Landroid/preference/CheckBoxPreference;

    const v1, 0x7f05002a

    invoke-virtual {v0, v1}, Landroid/preference/CheckBoxPreference;->setTitle(I)V

    .line 80
    iget-object v0, p0, Limoblife/yogamoment/lite/SetActivity$2;->val$animationCheckBox:Landroid/preference/CheckBoxPreference;

    const v1, 0x7f05002c

    invoke-virtual {v0, v1}, Landroid/preference/CheckBoxPreference;->setSummary(I)V

    .line 81
    iget-object v0, p0, Limoblife/yogamoment/lite/SetActivity$2;->val$setAnimationtpreference:Landroid/preference/Preference;

    invoke-virtual {v0, v2}, Landroid/preference/Preference;->setEnabled(Z)V

    goto :goto_0
.end method
